package com.ericsson.rm.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the RESOURCE_SKILL_DETAIL database table.
 * 
 */
@Entity
/*@NamedQueries ({
	@NamedQuery(name="ResourceSkillDetail.findResourceId" , query = "SELECT r.ResourceId from ResourceSkillDetail r WHERE r.skillId = :skillId" )
})*/
@Table(name="RP_RESOURCE_SKILL_DETAIL")
public class ResourceSkillDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="RESOURCE_SKILL_ID")
	private String resourceSkillId;

	@Temporal(TemporalType.DATE)
	@Column(name="SKILL_END_DATE")
	private Date skillEndDate;

	@Temporal(TemporalType.DATE)
	@Column(name="SKILL_START_DATE")
	private Date skillStartDate;

	//bi-directional many-to-one association to ResourceDetail
	@ManyToOne
	@JoinColumn(name="RESOURCE_ID")
	private ResourceDetail resourceDetail;

	//bi-directional many-to-one association to SkillDetail
	@ManyToOne
	@JoinColumn(name="SKILL_ID")
	private SkillDetail skillDetail;

	public ResourceSkillDetail() {
	}

	public String getResourceSkillId() {
		return this.resourceSkillId;
	}

	public void setResourceSkillId(String resourceSkillId) {
		this.resourceSkillId = resourceSkillId;
	}

	public Date getSkillEndDate() {
		return this.skillEndDate;
	}

	public void setSkillEndDate(Date skillEndDate) {
		this.skillEndDate = skillEndDate;
	}

	public Date getSkillStartDate() {
		return this.skillStartDate;
	}

	public void setSkillStartDate(Date skillStartDate) {
		this.skillStartDate = skillStartDate;
	}

	public ResourceDetail getResourceDetail() {
		return this.resourceDetail;
	}

	public void setResourceDetail(ResourceDetail resourceDetail) {
		this.resourceDetail = resourceDetail;
	}

	public SkillDetail getSkillDetail() {
		return this.skillDetail;
	}

	public void setSkillDetail(SkillDetail skillDetail) {
		this.skillDetail = skillDetail;
	}

}